package com.swgranada.pistachio;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class Pistachio extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    /**
     * Funcion que inicia la intencion de grabar video con un limite de 30 segundo
     * @param view
     */
    public void lanzarGrabaVideo(View view){
    	Intent cameraIntent = new Intent(this,GrabaVideo.class);
    	//cameraIntent.putExtra("android.intent.extra.durationLimit", 5);
        startActivity(cameraIntent);
    }
}
